//package com.jingdianjichi.auth.domain.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import java.util.concurrent.Executors;
//import java.util.concurrent.LinkedBlockingDeque;
//import java.util.concurrent.ThreadPoolExecutor;
//import java.util.concurrent.TimeUnit;
//
///**
// * @Description: 线程池的config管理
// * @Author: 张广焱
// * @Date: 2024-02-07 16:53
// */
//@Configuration
//public class ThreadPoolConfig {
//    @Bean(name = "labelThreadPool")
//    public ThreadPoolExecutor getLablThreadPool() {
//        //线程数，最大线程数，线程保存时间，队列长度，队列线程工厂，选择性拒绝策略
//        return new ThreadPoolExecutor(20, 100, 5, TimeUnit.SECONDS, new LinkedBlockingDeque<>(40), Executors.defaultThreadFactory()
//        ,new ThreadPoolExecutor.CallerRunsPolicy());
//    }
//}
